package com.zjc.service;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import java.io.Serializable;

public class A_Task implements JavaDelegate ,Serializable {
    @Override
    public void execute(DelegateExecution delegateExecution) throws Exception {
        delegateExecution.setVariable("isRule",true);
        delegateExecution.setVariable("isTime1",true);
        System.out.println("A_Task 的事件名字="+ delegateExecution.getEventName());
        System.out.println("A_Task="+delegateExecution.toString());
//        delegateExecution.setVariable("b_listener",new B_Listener());
//        delegateExecution.setVariable("d_listener",new D_Listener());
        delegateExecution.setVariable("c_service",new C_Service());
        delegateExecution.setVariable("e_service",new E_Service());
        delegateExecution.setVariable("b_listener",new B_Listener());
        delegateExecution.setVariable("d_listener",new D_Listener());
        delegateExecution.setVariable("_end",new E_End());
    }
}
